//
//  MSTextImage.h
//  Community
//
//  Created by luo danal on 3/1/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MSTextImage : UIView {
    UILabel *_titleLabel;
    UIImageView *_imageView;
}

@property (copy,nonatomic) NSString *title;
@property (retain,nonatomic) UIColor *titleColor;
@property (retain,nonatomic) UIColor *bgColor;
@property (nonatomic) BOOL hasCorners;
@property (retain,nonatomic) UIImage *image;

+ (MSTextImage *)imageWithFrame:(CGRect)frame
                     title:(NSString *)title 
                titleColor:(UIColor *)color
                   bgColor:(UIColor *)bgColor
               withCorners:(BOOL)hasCorners;

+ (MSTextImage *)imageWithFrame:(CGRect)frame 
                        image:(UIImage *)image 
                  withCorners:(BOOL)hasCorners;
@end
